 <template>
   <div class="analysisTask">             
       <div id="myChart" :style="{width: width, height: height}"></div>          
   </div>
</template>
<script>
  export default {
  name: 'ChartLint',
  props:[
    'barData',
    'width',
    'height'
  ],
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  mounted(){
    this.drawLine();
  },
  methods: {
    drawLine(){
        // 基于准备好的dom，初始化echarts实例
        let myChart = this.$echarts.init(document.getElementById('myChart'))
        // 绘制图表
        myChart.setOption(this.barData);
    }
  }
}
</script>
<style>
 
</style>


